package com.dormitory.management.system.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dormitory.management.system.entity.WeekCheck;
import com.dormitory.management.system.resp.WeekCheckPageResp;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 周例查表 Mapper 接口
 * </p>
 *
 * @author
 * @since 2021-12-17
 */
@Mapper
public interface WeekCheckMapper extends BaseMapper<WeekCheck> {
    List<Integer> count(@Param(Constants.WRAPPER) QueryWrapper<Integer> queryWrapper);
    Page<WeekCheckPageResp> getWeekCheckPageUser(IPage<WeekCheckPageResp> page, @Param(Constants.WRAPPER) QueryWrapper<WeekCheckPageResp> QueryWrapper);
    Page<WeekCheckPageResp> getWeekCheckPageHouseMaster(IPage<WeekCheckPageResp> page, @Param(Constants.WRAPPER) QueryWrapper<WeekCheckPageResp> QueryWrapper);
    Page<WeekCheckPageResp> getWeekCheckPageStudent(IPage<WeekCheckPageResp> page, @Param(Constants.WRAPPER) QueryWrapper<WeekCheckPageResp> QueryWrapper);
}
